package cn.iocoder.yudao.module.nginxui.controller.admin.globalblock.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - Nginx全局块配置新增/修改 Request VO")
@Data
public class GlobalBlockSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19411")
    private Long id;

    @Schema(description = "关联主配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25730")
    @NotNull(message = "关联主配置ID不能为空")
    private Long configId;

    @Schema(description = "配置指令", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置指令不能为空")
    private String directive;

    @Schema(description = "配置值")
    private String value;

    @Schema(description = "配置描述", example = "随便")
    private String description;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态(0-禁用,1-启用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态(0-禁用,1-启用)不能为空")
    private Integer status;

}